<?php if($sf_user->isAuthenticated()): ?>
                    <?php if($sf_user->getGuardUser()->hasRelPermission('edit_message', $ktd_message->getKTDPlayer())) : ?>
                    <a class="btn primary" href="<?php echo url_for("edit_message", $ktd_message)?>">Editer</a>
                    <?php endif; ?>
                    <?php if($sf_user->getGuardUser()->hasRelPermission('delete_message', $ktd_message->getKTDPlayer())) : ?>
                    <a onclick="return confirm('Supprimer le message ?')" class="btn danger"href="<?php echo url_for("delete_message", $ktd_message)?>">Supprimer</a>
                    <?php endif; ?>
                    <?php if($sf_user->getGuardUser()->hasRelPermission('edit_message', $ktd_message->getKTDPlayer()) || $sf_user->getGuardUser()->hasRelPermission('delete_message', $ktd_message->getKTDPlayer())) : ?>
                    <hr/>
                    <?php endif; ?>
<?php endif; ?>